package com.yixun.qfbao.util;

public class PorxyResult {
	public enum HStatus {
		YES("0", "成功"), FAIL("1", "失败"), NETWORK("2", "网络异常"), ;
		String no;
		String des;

		public String getNo() {
			return no;
		}

		public void setNo(String no) {
			this.no = no;
		}

		public String getDes() {
			return des;
		}

		public void setDes(String des) {
			this.des = des;
		}

		private HStatus(String no, String des) {
			this.no = no;
			this.des = des;
		}

		public static HStatus getByNo(String no) {
			if (no != null) {
				for (HStatus yn : values()) {
					if (yn.getNo().equals(no)) {
						return yn;
					}
				}
			}
			return null;
		}
	}

	private HStatus status;

	private String context;

	public HStatus getStatus() {
		return status;
	}

	public void setStatus(HStatus status) {
		this.status = status;
	}

	public String getContext() {
		return context;
	}

	public void setContext(String context) {
		this.context = context;
	}

}
